package com.cwh.taskcenter.reward.converter;

import com.cwh.taskcenter.domain.reward.model.PointAccount;
import com.cwh.taskcenter.reward.model.PointAccountDO;

/**
 * @author cwh
 */
public class PointAccountConverter {


    public static PointAccountDO toPointAccountDO(PointAccount pointAccount) {
        PointAccountDO pointAccountDO = new PointAccountDO();
        pointAccountDO.setId(pointAccount.getId());
        pointAccountDO.setUserId(pointAccount.getUserId());
        pointAccountDO.setTotalPoint(pointAccount.getTotalPoint());
        pointAccountDO.setFrozenPoint(pointAccount.getFrozenPoint());
        pointAccountDO.setAvailablePoint(pointAccount.getAvailablePoint());
        pointAccountDO.setAccStatus(pointAccount.getAccStatus());
        return pointAccountDO;
    }

}
